gtkdnd: Introduce a new API for more accurate drag origin data
authorJasper St. Pierre <jstpierre@mecheye.net>
Wed, 7 Aug 2013 09:10:42 +0000 (05:10 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Wed, 14 Aug 2013 11:12:52 +0000 (07:12 -0400)
commit030b62d122d825c3f043116bca29dd6cc7896210
tree4c6a293dbbcac954cf9fe99f9d8408c1185c4843
parente80d1f0523d8e47deff687b3aa6877a152507d0d
gtkdnd: Introduce a new API for more accurate drag origin data

When trying to drag, we currently the position of the first motion
event to determine where the drag came from. This might be alright
in the case of the old animation, but the data will be inaccurate
if the user has moved the pointer quite a bit since pressing the
cursor to start dragging. While we could monkey patch the GdkEvent
at the widget layer, this is unintuitive and strange.

Add a new API that takes a set of pointer coordinates describing
the origin of the drag. Additionally, adapt most widgets to use
it and use it with correct coordinates.

https://bugzilla.gnome.org/show_bug.cgi?id=705605
gtk/gtkcalendar.c
gtk/gtkdnd.c
gtk/gtkdnd.h
gtk/gtkentry.c
gtk/gtkiconview.c
gtk/gtklabel.c
gtk/gtknotebook.c
gtk/gtktextview.c
gtk/gtktreeview.c